import request from './request'

export const listFaults = () => {
    return request({
        url: 'proxy/diagnosis/listFaults',
        method: 'get'
    })
}

export const list = (queryCondition) => {
    return request({
        url: 'proxy/diagnosis/list',
        method: 'get',
        params: queryCondition
    })
}

export const save = (saveReq) => {
    return request({
        url: 'proxy/diagnosis/save',
        method: 'post',
        data: saveReq
    })
}

export const remove = (id) => {
    return request({
        url: 'proxy/diagnosis/delete',
        method: 'delete',
        params: {
            id
        }
    })
}
